package com.hzz.dto;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * Ztree节点数据DTO
 */
@Data
@NoArgsConstructor
public class ZTreeNodeDto {
    String id;
    Integer state;
    String pid;
    String name;
    boolean open;
    @JSONField(name = "isParent")
    boolean isParent;
    /**
     * 附加数据
     */
    Object data;
    List<ZTreeNodeDto> children = new ArrayList<>();
}
